package com.alexgaoyh.MutiModule.Dubbo.RWSeperate.api.mutiDatabase.write;

import org.apache.ibatis.annotations.Param;

import com.alexgaoyh.MutiModule.Dubbo.RWSeperate.persist.mutiDatabase.MutiDatabase;
import com.alexgaoyh.MutiModule.Dubbo.RWSeperate.persist.mutiDatabase.MutiDatabaseExample;

/**
 * MutiDatabase 模块 写接口
 * @author alexgaoyh
 *
 */
public interface IMutiDatabaseWriteService {

	int insert(MutiDatabase record);

    int insertSelective(MutiDatabase record);
    
    int insertTransaction(MutiDatabase record1, MutiDatabase record2);

    int updateByExampleSelective(@Param("record") MutiDatabase record, @Param("example") MutiDatabaseExample example);

    int updateByExample(@Param("record") MutiDatabase record, @Param("example") MutiDatabaseExample example);

    int updateByPrimaryKeySelective(MutiDatabase record);

    int updateByPrimaryKey(MutiDatabase record);
    
    int deleteByExample(MutiDatabaseExample example);

    int deleteByPrimaryKey(Long id);
    
}
